package cn.wei.youvie.service;

import cn.wei.youvie.common.servlet.DeleteRequest;
import cn.wei.youvie.domain.dto.content.ContentAddRequest;
import cn.wei.youvie.domain.dto.content.ContentUpdateRequest;
import cn.wei.youvie.domain.entity.Content;
import cn.wei.youvie.domain.vo.ContentVO;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
* @author Youvie
* @description 针对表【contents(存储节或段落中的具体内容)】的数据库操作Service
* @createDate 2024-08-27 21:02:15
*/
public interface ContentService extends IService<Content> {

    Integer add(ContentAddRequest contentsAddRequest, HttpServletRequest request);

    boolean deleteContent(DeleteRequest deleteRequest, HttpServletRequest request);

    boolean updateContent(ContentUpdateRequest contentsUpdateRequest, HttpServletRequest request);

    ContentVO getContentVO(Content content, HttpServletRequest request);
}
